import java.util.HashMap;

import org.jivesoftware.smack.AccountManager;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;

public class TempDriver {
	public static void main(String[] args) {
		try {
			XMPPConnection tmp = new XMPPConnection("jabber80.com");
			tmp.connect();
			AccountManager am = new AccountManager(tmp);
			System.out.println(am.supportsAccountCreation());
			System.out.println(am.getAccountInstructions());
			
			
			HashMap hm = new HashMap<String,String>();
			for(String s : am.getAccountAttributes()){
				System.out.println(s);
				hm.put(s, " ");			
			}
			hm.put("username", "ysh4u3");
			hm.put("password", "ysh4u3");
			hm.put("name", "1500");
			
			System.out.println(hm);
			
			am.createAccount("ysh4u3", "ysh4u3", hm);
			tmp.disconnect();
		} catch (XMPPException e) {
			System.out.println(e);
		}

	}

}
